package com.android.tiango.baba.act;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.android.scsd.tiango.R;
import com.android.tiango.baba.BaBaseActivity;
/**
 * 关联天购吧账号
 * @author suip
 *
 */
public class ActRelativeAccount extends BaBaseActivity implements OnClickListener{

	private EditText mPhone,mPassword;//login 的手机号码账号和密码
	private ImageView mIsOpenPassword;//控制密码是否显示为***
	private Button mLogin;
	private TextView mForgetPassword;
	@Override
	protected void onCreate(Bundle arg0) {
		// TODO Auto-generated method stub
		super.onCreate(arg0);
		setContentView(R.layout.layout_reletive_account);
		initView();
	}

	private void initView() {
		// TODO Auto-generated method stub
		if(null!=mTitleBar){
			
			setTitleName("关联账号");
			mTitleBar.setBackIcon(R.drawable.back);
			setBackOnClickListener();
		}
		
		mPhone= (EditText) findViewById(R.id.et_phone);
		mPassword=(EditText) findViewById(R.id.et_password);
		mLogin=(Button) findViewById(R.id.bt_login);
		mForgetPassword=(TextView) findViewById(R.id.tv_forget);
		
		mForgetPassword.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.tv_forget:
			showActivity(ActFindPassword.class, false);
			break;

		default:
			break;
		}
	}
}
